{extend name="../../admin/view/main"}

{block name="button"}

{/block}

{block name="content"}
<div class="layui-tab layui-tab-card think-bg-white">
    <div class="layui-tab-content table-block">
        {include file='forge/index_search'}
        <table class="layui-table" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='list-table-check-td think-checkbox'>
                    <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
                </th>
                <th class='text-left'>ID</th>
                <th class='text-left'>商品ID</th>
                <th class='text-left'>头像</th>
                <th class="text-left">默认Spin金额</th>
                <th class="text-left">默认中奖概率</th>
                <th class="text-left">最小概率</th>
                <th class="text-left">最大概率</th>
                <th class="text-left">商品金额</th>
                <th class="text-left">商品图片</th>
                <th class="text-left">RtpBase</th>
                <th class="text-left">RtpCorr</th>
                <th class="text-left">CorrValue</th>
                <th class="text-left">KBan</th>
                <th class="text-left">是否热门</th>
                <th class="text-left">Forge状态</th>
                <th></th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td class='list-table-check-td think-checkbox'>
                    <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
                </td>
                <td class='text-left '>{$vo.id|default=''}</td>
                <td class='text-left '>{$vo.product_id|default=''}</td>
                <td class='text-left '>
                    <img src="{$vo.head_image|default=''}" alt="Smiley face" width="60" height="60">
                </td>
                <td class='text-left '>{$vo.default_spin_amount|default=''}</td>
                <td class='text-left '>{$vo.forge_probability|default=''}</td>
                <td class='text-left '>{$vo.min_probability|default=''}</td>
                <td class='text-left '>{$vo.max_probability|default=''}</td>
                <td class='text-left '>{$vo.product_amount|default=''}</td>
                <td class='text-left '>
                    <img src="{$vo.product_image|default=''}" alt="Smiley face" width="60" height="60">
                </td>
                <td class='text-left '>{$vo.rtp_base|default=''}</td>
                <td class='text-left '>{$vo.rtp_corr|default=''}</td>
                <td class='text-left '>{$vo.corr_value|default=''}</td>
                <td class='text-left '>{$vo.k_ban|default=''}</td>
                <td class="text-left nowrap">
                    {if $vo.is_hot eq 1}<span class="color-blue">热门</span>
                    {elseif $vo.is_hot eq 2}<span class="color-green">非热门</span>
                    {/if}
                </td>
                <td class="text-left nowrap">
                    {if $vo.status eq 1}<span class="color-green">有效</span>
                    {elseif $vo.status eq 2}<span class="color-red">无效</span>
                    {/if}
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        <div style="margin-top: -5px;">{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
        </div>
    </div>
</div>
{/block}